package com.cl.pattern.chain;

/**
 * 部门经理
 *
 * 处理请假天数  3天以上 ，7天一下
 */
public class DeptManager extends Handler {

    protected final static int MIN = 3;
    protected final static int MAX = 7;

    public DeptManager() {
        //部门经理处理3-7天的请假
        super(MIN, MAX);
    }

    @Override
    protected void handleLeave(LeaveBill leave) {
        System.out.println(leave.getName() + "请假" + leave.getLeaveDays() + "天," + leave.getContent() + "。");
        System.out.println("部门经理审批：同意。");
    }
}